local M={
    IsPlayingAnimation=false,
    scale=1.0
}

function M:ShowUp()
    self.IsPlayingAnimation=true
    self.scale=0.1
end

function M:UpdateAnimation(delta)
    local speed=4.0
    self.scale=self.scale+speed*delta
    if self.scale>=1.0 then
        self.IsPlayingAnimation=false
        self.scale=1.0
    end
    self.GameObject:SetScale(self.scale,self.scale,1.0)
end

function M:Update(delta)
    if self.IsPlayingAnimation then
        self:UpdateAnimation(delta)
    end
end

return M